/**
 * Created by yanpingting on 2019/1/8.
 */
/**
 * tokenId
 */
export default{
  //tokenId
  token: sessionStorage.token,
  setToken(newToken)
  {
    this.token = newToken;
  },
  userRole: sessionStorage.userRole,
  setUserRole(newRole) {
    this.userRole = newRole;
  },
  //用户信息
  userInfo: '',
  setUserInfo(userInfo){
    this.userInfo = userInfo;
  },
  //用户id
  userId: '',
  setUserId(userId){
    this.uid = userid;
  }
}
